FROM nginx:latest
LABEL maintainer="xuping <361131953@qq.com>"

WORKDIR /wave_nginx
COPY . .

ARG IP_ADDRESS

COPY .docker-compose/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf

RUN sed -i "/server 127.0.0.1:8080;/cserver $IP_ADDRESS:8080;" /etc/nginx/conf.d/default.conf
RUN sed -i "/server 127.0.0.1:8184;/cserver $IP_ADDRESS:8184;" /etc/nginx/conf.d/default.conf

RUN cat /etc/nginx/nginx.conf
RUN cat /etc/nginx/conf.d/default.conf
RUN ls -al /usr/share/nginx/html